package sidecar

import (
	"io"
	"net"
)

type conn struct {
	canUse    bool
	transport io.ReadWriteCloser
}

func newTCPConn(addr string) (*conn, error) {
	c, err := net.Dial("TCP", addr)
	if err != nil {
		return nil, err
	}
	return &conn{
		canUse:    true,
		transport: c,
	}, nil
}
